package com.yonyou.pmclouds.plan.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yonyou.pmclouds.basecom.entity.SuperVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "pm_plan_write")
public class PlanWriteVO extends SuperVO {
    public static final String WRITER="writer";
    public static final String WRITEDATE="writerDate";
    public static final String BILLSTATUS="billstatus";
    public static final String WRITER_NAME="writerName";
    @Id
    private String pkPlanwrite;//计划填报主键
    private String pkProject;//关联项目主键
    private String pkTenant;//关联租户主键
    private String pkPlan;//关联项目计划主键
    private String billType;//单据类型
    private String writer;//反馈人
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date writeDate;//反馈时间
    private byte billstatus;//审批状态


    private String creator;//创建者
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date creationtime;//创建时间
    private String modifier;//修改者
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date modifytime;//修改时间


    @Transient
    private String writerName;//反馈人名称

    @Transient
    private PlanProgressTransVO[] progresse;

    @Transient
    private ProjectPlanViewVO[] projectPlanViewVOS;//待办列表扩展展示内容


}
